package com.example.train.app.service.impl;

import com.example.train.app.service.JobService;
import com.example.train.domain.entity.Job;
import com.example.train.domain.repository.JobRepository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: chundong.huang@hand-china.com
 * @Date: 2023/3/25 15:39
 */
@Service
public class JobServiceImpl implements JobService {
    private final JobRepository jobRepository;

    public JobServiceImpl(JobRepository jobRepository) {
        this.jobRepository = jobRepository;
    }


    @Override
    public List<Job> list(String id) {
        return jobRepository.list(id);
    }

    @Override
    public int update(Job job) {
        return jobRepository.update(job);
    }

}
